global main;
global tb;

// EMP 解析入口
main = function(file)
{
    logger.log_message("Loading File: %s", file);

    local nfo = fs.filename(file);
    local fullpath = nfo.fullpath;
    
    local param2 = io.handler.json.load(file);
    // local param = io.handler.json.load(file);
    global td;

    // local param = exec("app:/scripting/solver/EMP/sf2std.mx", file /*, "app:/scripting/solver/EMP/output_std.json"*/ );
    local param = exec("app:/scripting/solver/EMP/sf2std_v1.mx", fullpath /*, "app:/scripting/solver/EMP/output_std.json"*/ );

    // local output = "app:/scripting/solver/EMP/EMP_test.ewp2";
    exec("""app:\scripting\solver\EMP\make_emp_v1.mx""", td, param, param2);    


    // 后处理
    // 暂时后处理写在模板工程里调用（通过单次调度器）
    // exec("""app:\scripting\solver\EMP\post_emp.mx""", param);
};





